package swing_UI;

import java.awt.BorderLayout;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;

public class ConnectionDisplay extends JDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4933695425952829345L;
	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			ConnectionDisplay dialog = new ConnectionDisplay();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public ConnectionDisplay() {
		setBounds(100, 100, 300, 200);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		
		JLabel lblConnectionId = new JLabel("Connection ID:");
		lblConnectionId.setBounds(10, 11, 115, 14);
		contentPanel.add(lblConnectionId);
		{
			JLabel lblConnectionStarted = new JLabel("Connection started:");
			lblConnectionStarted.setBounds(10, 30, 115, 14);
			contentPanel.add(lblConnectionStarted);
		}
		{
			JLabel lblCurrentTime = new JLabel("Current Time:");
			lblCurrentTime.setBounds(10, 47, 115, 14);
			contentPanel.add(lblCurrentTime);
		}
		{
			JLabel lblRegistered = new JLabel("Registered:");
			lblRegistered.setBounds(10, 66, 103, 14);
			contentPanel.add(lblRegistered);
		}
		{
			JLabel lblUsername = new JLabel("Username:");
			lblUsername.setBounds(10, 85, 103, 14);
			contentPanel.add(lblUsername);
		}
		{
			JLabel lblTokenUsed = new JLabel("Token used:");
			lblTokenUsed.setBounds(10, 106, 103, 14);
			contentPanel.add(lblTokenUsed);
		}
		{
			JLabel label = new JLabel("423");
			label.setBounds(147, 11, 46, 14);
			contentPanel.add(label);
		}
		{
			JLabel lblNov = new JLabel("Nov 28 2011, 12:53");
			lblNov.setBounds(147, 30, 124, 14);
			contentPanel.add(lblNov);
		}
		{
			JLabel label = new JLabel("1:53:42,  $10.52");
			label.setBounds(147, 47, 124, 14);
			contentPanel.add(label);
		}
		{
			JLabel lblNo = new JLabel("No");
			lblNo.setBounds(147, 66, 46, 14);
			contentPanel.add(lblNo);
		}
		{
			JLabel lblDefault = new JLabel("Default");
			lblDefault.setBounds(147, 85, 46, 14);
			contentPanel.add(lblDefault);
		}
		{
			JLabel lblJadke = new JLabel("JADKE");
			lblJadke.setBounds(147, 106, 46, 14);
			contentPanel.add(lblJadke);
		}
		{
			/*JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
			{
				JButton okButton = new JButton("OK");
				okButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						ConnectionDisplay.super().dispose();
					}
				});
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}*/
		}
	}
}
